package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * Author: 廖振辉
 * Date: 2021/11/17
 * Description: 新增每日金句dto
 */
@Data
@ApiModel("新增每日金句dto")
public class ProverbDTO {

    @ApiModelProperty("句子内容")
    @NotBlank(message = "金句内容不可为空")
    private String sentence;

    @ApiModelProperty("作者")
    private String author;

    public ProverbDTO() {
        this.author = "佚名";
    }
}
